<template>
  <div>
    <Layoutheader>
      <template v-slot:title>
        <div class="title"><span>订单管理</span>/<span>合作导游</span></div>
      </template>
      <template v-slot:contrlle>
        <div class="input_box">
          <div>
            <span>导游姓名：</span>
            <input placeholder="请输入" type="text" />
          </div>

          <div>
            <span>状态：</span>
            <el-select v-model="value" placeholder="请选择">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
          </div>

          <div>
            <span class="btn success">查询</span>
            <span class="btn default">重置</span>
          </div>
        </div>
      </template>
    </Layoutheader>
    <router-view></router-view>
    <div class="gooptable">
      <!-- 头部 -->
      <div>
        <div>导游姓名</div>
        <div>分销线路总数</div>
        <div>分销订单总数</div>
        <div>分销订单总金额（元）</div>
        <div>操作</div>
      </div>
      <!-- 内容 -->
      <div>
        <div v-for="(item, index) in coopData" :key="item.id">
          <div>{{ item.name }}</div>
          <div>{{ item.sum }}</div>
          <div>{{ item.ordersum }}</div>
          <div>{{ item.total }}</div>
          <div>
            <p @click="skip(index)">导游详情</p>
            <!-- <router-link
              class="routerlink"
              :to="{path:/tourguide/coopguide/guidedetails'}"
              ><span>导游详情</span></router-link
            > -->
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Layoutheader from "@/components/Layoutheader.vue";
import guide from "@/mixins/guide.js";

export default {
  components: { Layoutheader },
  mixins: [guide],
  data() {
    return {
      options: [],
      value: "",
      coopData: [
        {
          id: 1,
          name: "王小军",
          sum: 1,
          ordersum: 15,
          total: 152345.98,
        },
        {
          id: 2,
          name: "刘叶初",
          sum: 1,
          ordersum: 15,
          total: 152345.98,
        },
        {
          id: 3,
          name: "小飞侠",
          sum: 1,
          ordersum: 200,
          total: 66666.98,
        },
      ],
    };
  },
};
</script>

<style lang='less'>
.gooptable {
  height: 100%;
  background-color: #f1f4f6;
  padding: 4vh 3vh;
  text-align: left;

  & > div:first-child {
    display: flex;
    & > div {
      border: 1px solid #f3f3f3;
      background-color: #fafafa;
      padding: 2vh 0;
      padding-left: 1vw;
      width: 11.2vw;
    }
  }
  & > div:nth-child(2) {
    & > div {
      display: flex;
      & > div {
        border: 1px solid #f3f3f3;
        background-color: #fff;
        padding: 2vh 0;
        padding-left: 1vw;
        width: 11.2vw;
        p {
          cursor: pointer;
          color: #07c160;
        }
      }
    }
  }
}
</style>